package histogram;

import java.util.List;

import data.DataBig;

public class RatingHistogramBig {
	
	int[] numRating = new int[5];
	
	public RatingHistogramBig(List<DataBig> list){
		for(int i=0; i<5; i++){
			numRating[i]=0;
		}
		for(DataBig data : list){
			int uid = data.uid;
			int iid = data.iid;
			double rat = data.rat;
			
			numRating[(int) (Math.round(rat)-1)]++;
		}
	}

	public int[] getNumRating() {
		return numRating;
	}

}
